package com.cxb.servicemap.controller;

import com.cxb.internalcommon.dto.ResponseResult;
import com.cxb.internalcommon.responese.TrackResponse;
import com.cxb.servicemap.service.TrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sound.midi.Track;

@RestController
@RequestMapping("/track")
public class TrackController {

    @Autowired
    private TrackService trackService;

    /**
     * 创建轨迹
     * @param tid
     * @return
     */
    @PostMapping("/add")
    public ResponseResult<TrackResponse> addTrack(String tid){
        return trackService.addTrack(tid);
    }
}
